﻿@{
    ViewBag.Title = Local("Roles.PageTitle");
    Layout = GetPath(SystemDirectory.Shared, "_Dialog.cshtml");
}

@model Role
    
@if (IsValided)
{ 
    using (Html.BeginForm())
    {
    <div class="box">
        <label>@GLocal("Role.RoleName")</label>
        <div class="right">
            @Html.TextBoxFor(model=>model.RoleName)
        </div>
    </div>
    
    <div class="box">
        <label>@GLocal("Role.RoleLevel")</label>
        <div class="right">
            @Html.DropdownListForEnum(model => model.RoleLevel)
        </div>
    </div>
    
    <div class="box">
        <label>@GLocal("Role.IsHidden")</label>
        <div class="right">
            @Html.CheckBoxFor(model => model.IsHidden)
        </div>
    </div>
    
    <div class="box">
        <label>@GLocal("Role.DisplayColor")</label>
        <div class="right">
            @Html.TextBoxFor(model => model.DisplayColor)
        </div>
    </div>
    
    <div class="box">
        <label>@GLocal("Role.LogoUrl")</label>
        <div class="right">
            @Html.TextBoxFor(model => model.LogoUrl)
        </div>
    </div>
    
    <div class="box">
        <label>@GLocal("Role.SortOrder")</label>
        <div class="right">
            @Html.TextBoxFor(model => model.SortOrder)
        </div>
    </div>
    
    <div class="box">
        <label>@GLocal("Role.Description")</label>
        @Html.TextAreaFor(model => model.Description)
    </div>

    <div class="box">
        <button class="submit">@GLocal("Role.Save")</button>
    </div>
    }
}